package com.cmc.cloud.cmclink.doc.api.document.req.so.sovo.requirementsvo;

import com.cmes.framework.common.pojo.PageParam;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDateTime;

import static com.cmes.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND;

/**
 * 订舱附加要求分页 Request VO
 *
 * @author codegen
 */
@Schema(description = "管理后台 - 订舱附加要求分页 Request VO")
@Data
@EqualsAndHashCode(callSuper = true)
@ToString(callSuper = true)
public class RequirementsPageReqVO extends PageParam {

    @Schema(description = "外键", example = "13351")
    private Long referenceId;

    @Schema(description = "业务类型 so、 si", example = "1")
    private String referenceType;

    @Schema(description = "备注字段类型")
    private String requireTypeCode;

    @Schema(description = "备注字段代码关联字典表查询中文描述")
    private String requireCode;

    @Schema(description = "备注字段内容", example = "你猜")
    private String requireRemark;

    @Schema(description = "创建时间")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDateTime[] createTime;

}
